<?php
use yii\helpers\Html;
use yii\helpers\Url;
use app\lib\WeixinUtils;
/* @var $this yii\web\View */
/* @var $content string 字符串 */


$imgUrl=Url::to("@web/img/wx/");
$jsUrl=Url::to("@web/js/wx/");
$basejsUrl=Url::to("@web/js/");
$cssUrl=Url::to("@web/css/wx/");
?>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <style type="text/css">
        .top_bg_img {
            background-image:url(<?=$imgUrl?>/gifts_details_img/top_gb.png);
        }
        .top_goods_hr {
            background-image: url(<?=$imgUrl?>/gifts_details_img/hr.png);
        }
        .top_goods_hra {
            background-image: url(<?=$imgUrl?>/gifts_details_img/hr.png);
        }
        .top_goods_hrb {
            background-image: url(<?=$imgUrl?>/gifts_details_img/hr.png);
        }
        .down_img{
            background-image: url(<?=$good['HEADER_URL']?>);
        }

    </style>
    <link rel="stylesheet" href="<?=$cssUrl?>/weui.css" />
    <link rel="stylesheet" href="<?=$cssUrl?>/gifts_details.css" />
    <script src="<?=$jsUrl?>/zepto.min.js"></script>
    <script src="<?=$basejsUrl?>/jquery-2.1.4.js"></script>

    <title>收礼记录</title>
    <script>
        function href_card_list() {
            window.location.href = "<?=Url::to(["wx-biz/card-list"]);?>" ;
        }
        function href_view_wlxx() {
            window.location.href = "<?=Url::to(["wx-home/view-wlxx",'orderNo'=>$card_code_id,'giftCode'=>$good['GOODS_CODE']]);?>" ;
        }
    </script>
</head>

<body>

<div class="main">

    <div class="top_bg">
        <div class="top_bg_img">
            <div class="top_bg_title"><lable ><?=$good['VALID_DATE_MESSAGE']?></lable></div>
            <div class="top_bg_rmb" style="display: none;"><b>¥</b></div>
            <div class="top_bg_number" style="display: none;"><b><?=$good['PRICE']?></b></div>
            <div class="top_bg_msg"><b><?=$good['NAME']?></b></div>
        </div>
        <div class="top_goods">
            <div class="top_letf"><img class="top_goods_img" src="<?=$good['GOODS_IMG_URL']?>"/></div>
            <div class="top_right">
                <div class="top_right_text"><b><?=$good['GOODS_NAME']?></b></div>
                <div class="top_right_is">已兑换</div>
            </div>
        </div>

        <div class="top_goods_hr"></div>

        <div style="width: 100%; height:60px;" onclick="href_view_wlxx()">
            <div class="wl">查看物流信息</div>
            <div class="right">〉</div>
        </div>

        <div class="top_goods_hr"></div>

        <div style="width: 100%; height:auto;">
            <div class="collect">收货信息：<?=$good['RECEIVER_NAME']?>&nbsp;&nbsp;<?=$good['RECEIVER_PHONE']?></div>
            <div class="collect_message"><?=$good['SHENG']?><?=$good['SHI']?><?=$good['QU']?><?=$good['RECEIVER_ADDRESS']?></div>
        </div>

        <div class="top_goods_hr"></div>

    </div>

    <div style="width: 100%; height:50px; background-color: #ffffff; margin-top: 15px;">
        <div class="down_img"></div>
        <div class="down_text">
            <label style="color: rgb(158,158,158);"><?=date("m-d",strtotime($good['BOCREATE_DATETIME']))?></label>
            <label style="color: rgb(86,207,85);"><?=$good['NICK_NAME']?></label>
            <label style="color: rgb(158,158,158);">赠送</label>
            <label style="color: rgb(86,207,85); float: right;" onclick="href_card_list();">给他/她送礼</label>
        </div>
    </div>

</div>

</body>
</html>

